<template>
  <!-- 潮品轮播图 -->
  <div class="swiper-box">
      <div class="sImgBox" @click="totype()">
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item v-for="(v,i) in images" :key="i"><img :src="'.'+'v'"></van-swipe-item>
        </van-swipe>
      </div>
  </div>
</template>

<script>
export default {
    methods:{
        totype(){
            this.$router.push("/tidetype")
        }
    },
    data(){
        return{
            images: [
                "/tide/fashion_swiper/1.jpg",
                "/tide/fashion_swiper/2.jpg",
                "/tide/fashion_swiper/3.jpg",
                "/tide/fashion_swiper/4.jpg",
                "/tide/fashion_swiper/5.jpg",
                "/tide/fashion_swiper/6.jpg",
                "/tide/fashion_swiper/7.jpg",
            ],
        }
    }
}
</script>

<style scoped>
    .swiper-box{
        /* height: 2.14rem; */
        height: 1.85rem;
        background-color: #01abde;
        margin-bottom: 0.10rem;
        position: relative;
    }
    .swiper-box .sImgBox{
        width: 95%;
        height: 1.71rem;
        background-color: aquamarine;
        position: absolute;
        left: 0;
        right: 0;
        margin: auto;
        bottom: -0.10rem;
        border-radius: 0.07rem;
        overflow: hidden;
    }
    .my-swipe .van-swipe-item {
        color: #fff;
        font-size: 20px;
        line-height: 150px;
        text-align: center;
        background-color: #39a9ed;
    }
    .van-swipe__track,.my-swipe,.van-swipe,.van-swipe-item,img{
        width:100%;
        height: 100%;
    }
</style>